package chj.bookface;

import javax.swing.*;
import java.awt.*;

public class BKJPanel extends JPanel {
    Image img;
    public BKJPanel(String l) {
        img=Toolkit.getDefaultToolkit().getImage(l);
    }
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.drawImage(img, 0, 0,this.getWidth(), this.getHeight(), this);
    }
}